import java.util.ArrayList;
import java.util.List;

/**
 * @author: xinmi
 * @date: 2020/10/29
 * @description:
 */
public class ListBean {

    public static void main(String[] args){

        List<PathStopBean> lpb = new ArrayList<PathStopBean>();
        PathStopBean p1 = new PathStopBean(1,201098, "东城同沙",113.810208,22.990616,0);
        PathStopBean p2 = new PathStopBean(2,215694,"等水岭",113.801296,22.986807,1331.1807861328125);

        lpb.add(p1);
        lpb.add(p2);

        System.out.println("lpb = " + lpb.toString());
    }

    public static class PathStopBean {

        private int stopNo;
        private long stopId;
        private String stopName;
        private double lngOffset;
        private double latOffset;
        private double mileage;

        public PathStopBean(int stopNo, int stopId, String stopName,double lngOffset,double latOffset,double mileage){
            this.stopNo = stopNo;
            this.stopId = stopId;
            this.stopName = stopName;
            this.lngOffset = lngOffset;
            this.latOffset = latOffset;
            this.mileage = mileage;
        }

        public void setStopNo(int stopNo) {
            this.stopNo = stopNo;
        }
        public int getStopNo() {
            return stopNo;
        }

        public void setStopId(long stopId) {
            this.stopId = stopId;
        }
        public long getStopId() {
            return stopId;
        }

        public void setStopName(String stopName) {
            this.stopName = stopName;
        }
        public String getStopName() {
            return stopName;
        }

        public void setLngOffset(double lngOffset) {
            this.lngOffset = lngOffset;
        }
        public double getLngOffset() {
            return lngOffset;
        }

        public void setLatOffset(double latOffset) {
            this.latOffset = latOffset;
        }
        public double getLatOffset() {
            return latOffset;
        }

        public void setMileage(double mileage) {
            this.mileage = mileage;
        }
        public double getMileage() {
            return mileage;
        }

        public String toString(){
            return "{\"stopNo\": " + this.stopNo +
                    ",\"stopId\": " + this.stopId +
                    ",\"stopName\":" + this.stopName +
                    ",\"lngOffset\":" + this.lngOffset +
                    ",\"latOffset\":" + this.latOffset +
                    ",\"mileage\":" + this.mileage + "}";

        }

    }
}
